package clusterSingleton

/**
 * @Description: TODO
 * @Author: DJJ
 * @Date: 2019/12/16 18:16
 */


/**
 * Singleton identified 使用这个确认
 * [INFO] [12/16/2019 20:52:28.396] [SingletonClusterSystem-akka.actor.default-dispatcher-21] [akka.tcp://SingletonClusterSystem@127.0.0.1:50324/user/singletonUser] Singleton identified at [akka.tcp://SingletonClusterSystem@127.0.0.1:50266/user/singletonManager/singleton]
 */
object ClusterSingletonDemo extends App {

  SingletonActor.create(2551)    //seed-node

  SingletonActor.create(0)   //ClusterSingletonManager node
  SingletonActor.create(0)
  SingletonActor.create(0)
  SingletonActor.create(0)

  SingletonUser.create     //ClusterSingletonProxy node

}
